Pacify GCC 14 -Wnull-dereference
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:20:12 +0000 (01:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:26:23 +0000 (01:26 -0700)
commit62c2afe84107de96b850c1da7a2b80bcab6e588a
tree8accd81d83b5be6e97d89fe9d1dca6f2257f56c9
parent98d0fc989a00dda19412ec5cd3ebe9fb4f276521
Pacify GCC 14 -Wnull-dereference

* src/xterm.c (x_dpyinfo): New function, which acts like
x_display_info_for_display except it always returns nonnull.
This simplifies callers and pacifies GCC 14.  All callers changed.
src/xfaces.c
src/xfns.c
src/xmenu.c
src/xterm.c
src/xterm.h